<include file="../header" />
<body class="J_scroll_fixed">
<script>

        $(document).ready(function() {

          
        });

    </script>
    <form class="well form-search" method="post" style="float:left;width:100%;" action="{:U('report/courseOrder')}">
        <input type="hidden" name="shopId" value="{$shopId}"/>
    <div class="search_type cc mb10">
        <div class="mb10">
        <span class="mr20">
              店&nbsp;&nbsp;&nbsp;&nbsp;铺：{:getShopSelectHtml($shopId,1)}
              日期选择：
                    <input type="text" name="startTime" class="input length_2 J_date" value="{$startTime}" autocomplete="off">-<input type="text" name="endTime" class="input length_2 J_date" value="{$endTime}" autocomplete="off">
                    <button class="btn btn-primary">搜索</button>
            <a class="btn" href="{:U('report/courseOrder')}">重置</a>
                    
        </span>
        </div>
    </div>
</form>
  <form action="{:U('report/courseOrder')}" method="post">
        <input type="hidden" name="shopId" value="{$shopId}"/>
        <input type="hidden" name="startTime" value="{$startTime}"/>
        <input type="hidden" name="endTime" value="{$endTime}"/>
        <input type="hidden" name="export" value="export"/>
        <button class="btn btn-primary">导出Excel</button>
    </form>
<div class="wrap J_check_wrap">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>编号</th>
            <th>店铺</th>
            <th>教练</th>
            <th>会员</th>
            <th>会员电话</th>
            <th>单价</th>
            <th>数量</th>
            <th>总额</th>
            <th>总已上课数</th>
            <th>已累计收入确认额</th>            
            <th>已上课数-收入确认额(节/元)</th>
            <th>未确认收入额</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="list" item="vo">
            <tr>
                <td>{$vo.order_id}</td>
                <td>{$vo.shop_name}</td>
                <td>{$vo.coach_name}</td>
                <td>{$vo.vip_name}</td>
                <td>{$vo.mobile}</td>
                <td>{$vo.price} 元</td>
                <td>{$vo.number} 节</td>
                <td>{$vo.total_amount} 元</td>
                <td>{$vo.done} 节</td>
                <td>{$vo.done_amount} 元</td>               
                <td>{$vo.course_num} 节/{$vo.course_amount} 元</td>
                <td>{$vo.left_amount} 元</td>
            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>